package day01.ti.ti01;

public class XiYiJi extends ShuXing{
private String leixing;
private String rongliang;

    public XiYiJi() {
    }

    public XiYiJi(String leixing, String rongliang) {
        this.leixing = leixing;
        this.rongliang = rongliang;
    }

    public XiYiJi(String pinpai, String xinghao, String yanse, String shoujia, String leixing, String rongliang) {
        super(pinpai, xinghao, yanse, shoujia);
        this.leixing = leixing;
        this.rongliang = rongliang;
    }

    public String getLeixing() {
        return leixing;
    }

    public void setLeixing(String leixing) {
        this.leixing = leixing;
    }

    public String getRongliang() {
        return rongliang;
    }

    public void setRongliang(String rongliang) {
        this.rongliang = rongliang;
    }
    public void zi(){
        System.out.println("类型为  "+getLeixing()+"  容量为  "+getRongliang());
    }

}
